home *** CD-ROM | disk | FTP | other *** search
- Path: news.crystalball.com!news
- From: Larry Weiss <lfw@oc.com>
- Newsgroups: comp.lang.c
- Subject: Re: Determining the length of an int in string form
- Date: Mon, 25 Mar 1996 11:28:29 -0600
- Organization: crystalball.com
- Message-ID: <3156D7BD.90D@oc.com>
- References: <3146D058.DD7@cbm.com> <4i7uth$qph@inet-nntp-gw-1.us.oracle.com> <DoE38u.GIH@iquest.net> <4in1ga$ogk@airdmhor.gen.nz> <Pine.SOL.3.91.960319172332.4535A-100000@darwin.UCSC.EDU> <314F65D3.6A8@oc.com> <827703345snz@genesis.demon.co.uk> <3155E067.3261@iadfw.net> <827758089snz@genesis.demon.co.uk>
- NNTP-Posting-Host: external.oc.com
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Lawrence Kirby wrote:
- >
- > In article <3155E067.3261@iadfw.net> lfw@iadfw.net "Larry Weiss" writes:
- > >Now what I'd really like to see in the next revision of the standard library
- > >would be an snprintf() with the extra argument to declare only so many
- > >writeable chars in the buffer, and a return code to indicate logical
- > >attempts to write beyond that limit.
- >
- > Indeed, a return value indicating how many characters would have been
- > written to the buffer if it were large enough.
- >
-
- That would be great! That way you could specify zero chars available
- if you just wanted to learn how many to allocate ideally for the real event.
-
- Do implementations of snprintf() exist today that could be held up
- as prior-art?
-